home *** CD-ROM | disk | FTP | other *** search
/ Windows News 1997 February / Windows News CD #1 - Fev 97.iso / share / trans / tran.doc < prev    next >
Encoding:
Text File  |  1997-01-22  |  4.6 KB  |  114 lines

  1.              TRAN, version 0.3
  2.  
  3.  
  4. TRAN is a text-to-speech program for the I.B.M.-P.C..  It can read ASCII
  5. (askey) text files, translate normal English spelling to phonemes, and
  6. sound out each phoneme through the internal speaker of the P.C.  or to
  7. an 8-bit DAC on one of the P.C.'s I/O ports. 
  8.  
  9.     usage: tran [ +|- flags] [-options] [file-name]
  10.  
  11. The file-name is an ASCII text file (with no word processor formatting
  12. codes).  If no file-name is given TRAN reads input from the keyboard; in
  13. this case the program can be terminated with CTRL-C.  The flags and
  14. options control various features of the program.  A '+' turns the flag
  15. on and a '-' turns the flag off.  Options can use either '+' or '-'. 
  16. The square brackets indicate default values. 
  17.  
  18.     flags: + = on, - = off
  19.        i   use hardware interrupts to time the output [off]
  20.            P   type output of phoneme translation [off]
  21.            r   type rule number and phoneme translation [off]
  22.            s   say output (make sounds) [on]
  23.            t   echo input to console [off]
  24.            T   do phoneme translation [on]
  25.            v   type other internal information [off]
  26.  
  27.     options:
  28.            c        say the time of day once
  29.            C        say the time of day every 10 seconds
  30.            D N      dump single 8-bit phoneme N wave-form to file N.trn
  31.           d1 N      use N for space delay [5]
  32.           d2 N      use N for voice pitch [1]
  33.            f N      output 8-bit wave-form to binary file N
  34.            R        print all pronunciation rules
  35.            p N      output 8-bit wave-forms to DAC at port N
  36.                     where N = LPT1, LPT2, or LPT3 for a printer port
  37.                     or N = VMK1, VMK2, VMK3, or VMK4 for a COVOX VMK board
  38.                     or N = INT to use the internal speaker
  39.                     or N = the hexidecimal port number
  40.            z        print duration and loudness of each 8-bit phoneme
  41.            ?        type this summary of TRAN usage
  42.  
  43.  
  44. The following are examples of ways to use the TRAN program.  You can
  45. have TRAN type out and read this file with the command:
  46.  
  47.     tran +t tran.doc
  48.  
  49. If you also want to see the phoneme translation add the +P flag:
  50.  
  51.     tran +P +t tran.doc
  52.  
  53. You can save the phoneme translation in a file by typing
  54.  
  55.     tran -s +P tran.doc > tran.phn
  56.  
  57. and listen to the phoneme translation at some other time file by typing
  58.  
  59.     tran -T tran.phn
  60.  
  61. The TRAN program will say (and type) the time of day once if you type
  62.  
  63.     tran +t +c
  64.  
  65. or will continue to announce the time every 10 seconds if you type
  66.  
  67.     tran +t +C
  68.  
  69. There are two timing parameters, d1 and d2, that control the rate that
  70. TRAN speaks.  These are set automatically, but can be adjusted if
  71. necessary.  Making d1 larger increases the pauses between words and
  72. making d2 larger lowers the pitch of the voice during phonemes.  Both d1
  73. and d2 must have a value of 1 or greater.  On an I.B.M.-P.C./X.T., the best
  74. values for the timing parameters are d1=2 and d2=1.  Setting these
  75. values explicitly, by-passes the automatic setting, which saves a second
  76. or two starting the program.  These values can be set on the command
  77. line
  78.  
  79.     tran -d1 2 -d2 1 ... 
  80.  
  81. or by using the environment variable TRAN to pass these values
  82.  
  83.     set TRAN= -d1 2 -d2 1
  84.  
  85. Any of the other command line flags and options may also be set using
  86. this environment variable.
  87.  
  88. The speech-to-text rules used in the TRAN program come mostly from an
  89. article in an IEEE journal:
  90.  
  91.     Elovitz, H.S., Johnson, R., McHugh, A., and Shore, J.E.  (1976). 
  92.     "Letter-to-Sound Rules for Automatic Translation of English Text to
  93.     Phonetics," IEEE Transactions on Acoustics, Speech, and Signal
  94.     Processing, Vol. ASSP-24(6), pp 446-458. 
  95.  
  96. See the file RULES.TXT for a list of the rules used by the TRAN program.
  97.  
  98. The TRAN program contains a set of 47 phonemes, each encoded both as a
  99. sequence of 1-bit values controlling the position (in or out) of the
  100. P.C.  speaker and as a set of 8-bit values for generating the speech
  101. wave-form with a digital-to-analog convertor (DAC) available from COVOX
  102. in Eugene, Oregon.  The 1-bit phoneme codes come from the public domain
  103. program SPEECH by Andy McGuire.  The 8-bit phonemes were recorded with
  104. an 8-bit DAC (COVOX, voice master key).  See the file PHONEMES.TXT for a
  105. list of the phonemes used by the TRAN program. 
  106.  
  107. Send your comments and suggestions to:
  108.  
  109.                                             Stephen T.  Neely
  110.                                             11230 Ohio Street 
  111.                                             Omaha, NE 68164
  112.                         September, 1989
  113.  
  114.